import { HTTP } from '@/utils/httpRequestUtil'
import URL from '@/api/api'
export default {
    phraseLoadByPaging (params, cb) {
    HTTP.post(URL.phraseLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  phraseSave (params, cb) {
    HTTP.post(URL.phraseSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  phraseGet (params, cb) {
    HTTP.post(URL.phraseGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  phraseDel (params, cb) {
    HTTP.post(URL.phraseDel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  }
 
}
